<style>
    #selectGoodsList .goodsImg img{
        width: 50px;
        height: 50px;
    }
    #selectGoodsList .modal-body.form-horizontal{
        padding: 0 30px;
    }
    #selectGoodsList .modal-content{
        max-height: 800px;
    }
</style>
<div class="modal-dialog selectGoodsList"  id="selectGoodsList" style="min-width: 60%!important;">
    <div class="modal-content">
        <div class="modal-header">
            <button data-dismiss="modal" class="close" type="button">×</button>
            <h4 class="modal-title">转赠记录</h4>
        </div>
        <div class="modal-body form-horizontal">
            <!--表格-->
            <div class="app-table-list selectGoodsTable" id="selectGoodsTable">
                <div class="panel panel-default">
                    <table class="table table-hover table-responsive table-bordered" style="border: 1px solid #e5e5e5;">
                        <thead>
                        <tr>
                            <th class="text-center" width="10%">转赠人</th>
                            <th class="text-center" width="20%">转赠时间</th>
                            <th class="text-center" width="10%">转赠方式</th>
                            <th class="text-center" width="10%">转赠状态</th>
                            <th class="text-center" width="10%">领取人</th>
                            <th class="text-center" width="20%">领取/取消时间</th>
                            <th class="text-center" width="20%">领取人手机号</th>
                        </tr>
                        </thead>
                        <tbody class="text-center">
                        {loop $record $val}
                        <tr>
                            <td class="text-center goodsImg">
                                <img src="{$val['avatar']}" /><br/>
                                {$val['nickname']}
                            </td>
                            <td class="text-center">
                               {php echo date('Y-m-d H:i:s',$val['createtime'])}
                            </td>
                            <td>
                                {if $val['transfermode'] == 1}
                                <span class="label label-warning">电话号码</span>
                                {else if $val['transfermode'] == 2}
                                <span class="label label-success">转赠领取</span>
                                {else}
                                <span class="label label-default">批量转赠</span>
                                {/if}
                            </td>
                            <td>
                                {if $val['status'] == 0}
                                <span class="label label-warning">待领取</span>
                                {else if $val['status'] == 1}
                                <span class="label label-success">已领取</span>
                                {else}
                                <span class="label label-default">已取消</span>
                                {/if}
                            </td>
                            <td class="text-center goodsImg">
                                {if empty($val['getnickname'])}
                                ---
                                {else}
                                <img src="{$val['getavatar']}" /><br/>
                                {$val['getnickname']}
                                {/if}
                            </td>
                            <td>
                                {if $val['gettime'] > 0}
                                {php echo date('Y-m-d H:i:s',$val['gettime'])}
                                {else if $val['canceltime'] > 0}
                                {php echo date('Y-m-d H:i:s',$val['canceltime'])}
                                {else}
                                ---
                                {/if}
                            </td>
                            <td>
                                {if empty($val['mobile'])}
                                ---
                                {else}
                                {$val['mobile']}
                                {/if}
                            </td>
                        </tr>
                        {/loop}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button data-dismiss="modal" class="btn btn-default cancelSelectGoods" type="button">关闭</button>
        </div>
    </div>
</div>
